﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace YammerWM6
{
    public partial class frmSendMessage : Form
    {
        public frmSendMessage()
        {
            InitializeComponent();
        }

        public void SetSendToAll()
        {
            lblInstruction.Text = "To:";
            txtTo.Enabled = false;
            txtTo.Text = "Everyone";
            txtMsg.Text = string.Empty;
            txtMsg.Focus();
        }

        public void SetInReplyToId(string pId)
        {
            SetSendToAll();
            lblInstruction.Text = "In Reply To:";
            txtTo.Enabled = true;
        }

        public void SetToPerson(string pId)
        {
            SetSendToAll();
            lblInstruction.Text = "To:";
            txtTo.Enabled = true;
        }

        private void mnuCancel_Click( object sender, EventArgs e )
        {
            this.DialogResult = DialogResult.Cancel;
        }

        private void mnuSend_Click( object sender, EventArgs e )
        {
            this.DialogResult = DialogResult.OK;
        }
    }
}